import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import('@/pages/login/index.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/pages/home/index.vue')
  },
  {
    path: '/kzgl',
    name: 'kzgl',
    component: () => import('@/pages/kzgl/index.vue')
  },
  {
    path: '/jksb',
    name: 'jksb',
    component: () => import('@/pages/jksb/index.vue')
  },
  {
    path: '/jkyj',
    name: 'jkyj',
    component: () => import('@/pages/jkyj/index.vue')
  },
  {
    path: '/grzx',
    name: 'grzx',
    component: () => import('@/pages/grzx/index.vue')
  },
  {
    path: '/versioninfo',
    name: 'versioninfo',
    component: () => import('@/pages/grzx/versioninfo.vue')
  },
  {
    path: '/suggestion',
    name: 'suggestion',
    component: () => import('@/pages/grzx/suggestion.vue')
  }
]

const router = new VueRouter({
  // mode: 'history', // require service support
  // base: '/dist',
  scrollBehavior: () => ({ y: 0 }),
  routes
})

export default router
